<?php 


$localhost = 'localhost';
$user = 'root';
$password = '';
$db = 've';

$link = mysql_connect($localhost, $user, $password);
if (!$link) {
    die('Could not connect: ' . mysql_error());
}

$db_selected = mysql_select_db($db, $link);
if (!$db_selected) {
    die ('Can\'t use this database : ' . mysql_error());
}

session_start();

$city=$_POST['city'];
$dob=$_POST['dob'];
$gender=$_POST['gender'];

$query_check_credentials = "update user set city='".$city."',dob='".$dob."',gender='".$gender."' where user_id='".$_SESSION['user_id']."'";
$result_check_credentials = mysql_query($query_check_credentials);


?>

